package cn.fintecher.pangolin.entity.elastic;

import cn.fintecher.pangolin.common.utils.Constants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Date;
import java.util.List;

/**
 * @Auther: xiaqun
 * @Description: 敏感词实体
 * @Date: 9:31 2019/9/29
 */

@Data
@Document(indexName = Constants.SENSITIVE_WORD, type = Constants.SENSITIVE_WORD, shards = 1, replicas = 0)
@ApiModel(value = "敏感词实体", description = "敏感词实体")
public class SensitiveWord {
    @ApiModelProperty(value = "主键ID")
    @Id
    private String id;

    @ApiModelProperty(value = "委托方ID")
    private String principalId;

    @ApiModelProperty(value = "委托方名称")
    private String principalName;

    @ApiModelProperty(value = "提示词汇")
    private List<String> promptWords;

    @ApiModelProperty(value = "严重词汇")
    private List<String> seriousWords;

    @ApiModelProperty(value = "操作人ID")
    private String operatorId;

    @ApiModelProperty(value = "操作时间")
    private Date operateTime;
}
